package him.action.factory;

import him.action.Action;
import him.action.ActionFactory;
import him.action.main.MainAction;

public class MainActionFactory implements ActionFactory {
	private static MainActionFactory factory;
	
	public static MainActionFactory getInstance(){
		if (factory==null) {
			factory=new MainActionFactory();
		}
		return factory;
	}
	@Override
	public Action getAction(String command) {
		Action action = null;
		if (command.equalsIgnoreCase("main")) {
			action = new MainAction();
		}
		return action;
	}

}
